import i18n from '@/lang/index'
export function getTitle(title) {
  const hasKey = i18n.global.te(`router.${title}`)
  if (hasKey) {
    const translatedTitle = i18n.global.t(`router.${title}`)
    return translatedTitle
  }
  return title
}